<?php

class Application_Form_Searchyachtclub extends Zend_Dojo_Form
{

    public function init()
    {
        
    	$this->setName("yachtclub");
    	$this->setMethod('post');
    	 
    	$name = new Zend_Form_Element_Text('name');
    	$name->setLabel('Name:');
    	
    	$revier = new Zend_Form_Element_Text('revier');
    	$revier->setLabel('Reviername:');
    	 
    	$land = new Zend_Form_Element_Text('land');
    	$land->setLabel('Land:');
    	 
    	$stadt = new Zend_Form_Element_Text('stadt');
    	$stadt->setLabel('Stadt:');
    	 
    	$adresse = new Zend_Form_Element_Text('adresse');
    	$adresse->setLabel('Adresse:');
    	
    	$latitude = new Zend_Form_Element_Text('lat');
    	$latitude	->setLabel('latitude:');
    	 
    	$longitude = new Zend_Form_Element_Text('lng');
    	$longitude	->setLabel('longitude:');
    	
    	$saisonzeitbeginn = new Zend_Dojo_Form_Element_DateTextBox('saisonzeitbeginn');
    	$saisonzeitbeginn->setLabel('Saisonstart');
    	
    	$saisonzeitende = new Zend_Dojo_Form_Element_DateTextBox('saisonzeitende');
    	$saisonzeitende->setLabel('Saisonende');
    	
    	$hafenweg = new Zend_Form_Element_Text('hafenweg');
    	$hafenweg->setLabel('Entfernung zum Hafen (in Meter):')
    	->setOptions(array('id' => 'fname'))
    	->addValidator('Alnum', true);
    	
    	$open = new Zend_Dojo_Form_Element_TimeTextBox('open');
    	$open->setLabel('Oeffnungszeitenbeginn');
    	
    	$close = new Zend_Dojo_Form_Element_TimeTextBox('close');
    	$close->setLabel('Oeffnungszeitenende');
    	
    	$weblink = new Zend_Form_Element_Text('weblink');
    	$weblink->setLabel('Weblink:');
    	
    	//     	$portfoliobild = new Zend_Form_Element_Text('portfoliobild');
    	//     	$portfoliobild->setLabel('Protfoliobild:')
    	//     	->setOptions(array('id' => 'fname'))
    	//     	->setRequired(true);
    	
    	$submit = new Zend_Form_Element_Submit('submit');
    	$submit->setLabel('Abschicken')
    	->setOptions(array('class' => 'submit'));
    	
    	$this
    	->addElement($name)
    	->addElement($revier)
    	->addElement($land)
    	->addElement($stadt)
    	->addElement($adresse)
    	->addElement($latitude)
    	->addElement($longitude)
    	->addElement($saisonzeitbeginn)
    	->addElement($saisonzeitende)
    	->addElement($hafenweg)
    	->addElement($open)
    	->addElement($close)
    	->addElement($weblink)
    	//     	->addElement($profilbild)
    	->addElement($submit);
    	
    }


}

